package com.example.kotlin.lifecycle

/**
 * @ClassName: LifeCycleListener
 * @Description: 生命周期观察者
 * @Author: chenmengjia
 * @Date: 2022/2/3 9:52
 */
/**
 * An interface for listener to [android.app.Fragment] and [android.app.Activity]
 * lifecycle events.
 */
interface LifecycleObserver {
    /**
     * Callback for when [android.app.Fragment.onStart]} or []
     */
    fun onStart()

    /**
     * Callback for when [android.app.Fragment.onStop]} or []
     */
    fun onStop()

    /**
     * Callback for when [android.app.Fragment.onDestroy]} or []
     */
    fun onDestroy()
}